#!/usr/bin/php
<?php

require(dirname(__FILE__)."/../src_v2/classes/Token.php");


$uname   = 'admin';
$pwd_md5 = md5('admin');

$token = Token::generate($uname, $pwd_md5, 1800);

$cookie_struct = array( 'token' => $token);
$cookie_json   = json_encode( $cookie_struct );


require_once(dirname(__FILE__)."/../src_v2/classes/init.php");

$dbl = $PARAPARA->dblayer;
$account = $dbl->account_fetch_by_uid( 3 );

$account->karma++;

echo "'$account->screen_name'" . "\n";
echo $account->karma, "\n";

$dbl->account_save( $account );

echo "Q  :" . $dbl->latest_query, "\n";
echo "ERR:" . $dbl->mysql_error, "\n";


?>